#include "loadingwidget.h"
#include "ui_loadingwidget.h"

LoadingWidget::LoadingWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::LoadingWidget)
{
    ui->setupUi(this);
    this->setWindowFlags(Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint | Qt::WindowDoesNotAcceptFocus  | Qt::X11BypassWindowManagerHint);
    ui->widget->setStyleSheet("border-image: url(:/Picture/N-Spec.jpg)");
    // Create and start the QTimer
    QTimer *timer = new QTimer(this);
    timer->setInterval(4000); // 4秒
    timer->start();
    connect(timer, &QTimer::timeout, this, &LoadingWidget::hide);
}

LoadingWidget::~LoadingWidget()
{
    delete ui;
}



